
$("#tijiao").on("click", function () {
    event.preventDefault();
    var Uid = $("#Uid").val();
    var Uname = $("#Uname").val();
    var Upassword = $("#Upassword").val();
    var Uphone = $("#Uphone").val();
    var Uemail = $("#Uemail").val();
    var Utype = $("#Utype").val();

    d = {
        Uname: Uname,
        Upassword: Upassword,
        Uphone: Uphone,
        Uemail: Uemail,
        Utype: Utype
    };
    $.ajax("reg.do", {
        type: "get",
        data: d,
        dataType: "json",
        success: function (d) {
            console.log(1);
            if (d > 0) {
                alert("注册成功");
                window.location.href = "login.html";
            }
        }
    });
});